<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isELIgnored="false"%>
<%@ include file="/WEB-INF/views/shared/taglib.jsp"%>
<%
	request.setAttribute("modelConfigPath", "superbase");
%>

<t:form commandName="button" ajaxPost="true" onSuccess="onSuccess" action="/admin/superbase/menu/saveButtonToMenu" method="post" cssClass="form-horizontal">
	<div class="hide">
		<input type="hidden" id="menuId" name="menuId" value="${button.id}" />
		<input type="hidden" id="parentId" name="parentId" value="${menu.id}" />
	</div>
	<t:formgroup>
		<t:label path="name" cssClass="col-sm-2" />
		<t:input path="name" colClass="col-sm-4" />
		<t:label path="eventName" cssClass="col-sm-2" />
		<t:input path="eventName" colClass="col-sm-4" />
	</t:formgroup>
	<t:formgroup>
		<t:label path="icon" cssClass="col-sm-2" />
		<t:selectbox boxWidth="400" boxHeight="200" path="icon"  use="icon" inputGroupIcon="icon-home2" colClass="col-sm-4" />
		<t:label path="theme" cssClass="col-sm-2" />			
		<t:selectbox boxWidth="200" boxHeight="200" path="theme" use="theme" data-prefix="btn" rightInputGroupIcon="icon-square ${button.theme}" colClass="col-sm-4" />
	</t:formgroup>
	<t:formgroup>
		<t:label path="title" cssClass="col-sm-2" />
		<t:input path="title" data-valcopy-for="name" colClass="col-sm-4"/>
		<t:label path="sortCode" cssClass="col-sm-2" />
		<t:input path="sortCode" tsStep="10" tsMax="1000" touchspin="true" colClass="col-sm-4"/>
	</t:formgroup>
	<t:formgroup>
		<t:label path="buttonType" cssClass="col-sm-2" />
		<t:selectButton path="buttonType" colClass="col-sm-10"/>
	</t:formgroup>
</t:form>

<%@ include file="/WEB-INF/views/shared/scripts/jqueryui.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselects.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/formselectbox.jsp"%>
<%@ include file="/WEB-INF/views/shared/base/scripts/limitless/default/forminputs.jsp"%>

<%@ include file="/WEB-INF/views/shared/master/dialog.jsp"%>
			